#include <stdio.h>

struct Uart{
    char *Speed;
    char *Name;
};

int readUart(char *Path, struct Uart *tUart);

int main()
{
    char *path = "config.int";
    char *pSpeed = "Speed = 9600";
    char *pName = "COM1";
    struct Uart *pUart;
    struct Uart myUart = {pSpeed, pName};
    struct Uart myUart2 = {};
    pUart = &myUart;
    readUart(path, pUart);
    printf("main结果%s\n",myUart.Speed);
    return 0;
}
int readUart(char *Path, struct Uart *tUart)
{
    printf("readUart结果%s\n",tUart->Speed);
    tUart->Speed = "Speed = 115200";
    printf("%s",Path);
    return 0;
}